package com.wing.wcabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.wcabinet.model.entity.WcabCellAllocation;
import com.wing.wcabinet.model.request.WcabCellAllocationForm;
import com.wing.wcabinet.model.request.WcabCellInventoryInoutForm;
import com.wing.wcabinet.model.response.WcabCellAllocationVO;

import java.util.List;
import java.util.Map;

/**
 * 仓库调拨-Service
 *
 * @author
 */
public interface WcabCellAllocationService extends IService<WcabCellAllocation> {

    /**
     * 添加
     *
     * @param wcabCellAllocationForm
     * @return
     */
    int add(WcabCellAllocationForm wcabCellAllocationForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<WcabCellAllocationVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<WcabCellAllocationVO> pageList4app(Page page, Map<String, Object> params);

    Page<WcabCellAllocationVO> pageList(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    WcabCellAllocationVO get4appById(Long id);

    void allocate(WcabCellInventoryInoutForm cellInventoryInoutForm);
}
